<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkExportTasks
 *
 * @ORM\Table(name="tk_export_tasks", indexes={@ORM\Index(name="vcc_user", columns={"vcc_id", "create_user_id"}), @ORM\Index(name="token", columns={"token_id"}), @ORM\Index(name="condition", columns={"task_index", "is_part"})})
 * @ORM\Entity
 */
class TkExportTasks
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="token_id", type="bigint", nullable=false, options={"comment"="导出任务ID"})
     */
    private $tokenId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="task_name", type="string", length=255, nullable=false, options={"comment"="导出任务名称"})
     */
    private $taskName = '';

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false, options={"comment"="企业ID"})
     */
    private $vccId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="progress", type="integer", nullable=false, options={"comment"="导出进度"})
     */
    private $progress = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="file_url", type="string", length=255, nullable=false, options={"comment"="下载文件地址"})
     */
    private $fileUrl = '';

    /**
     * @var int
     *
     * @ORM\Column(name="data_count", type="bigint", nullable=false, options={"comment"="导出数据总条数"})
     */
    private $dataCount = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="create_user_id", type="integer", nullable=false, options={"comment"="创建工单导出任务用户ID"})
     */
    private $createUserId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="create_time", type="integer", nullable=false, options={"comment"="创建时间"})
     */
    private $createTime = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="status_time", type="integer", nullable=false, options={"comment"="状态时间"})
     */
    private $statusTime = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="use_time", type="integer", nullable=false, options={"comment"="使用时间"})
     */
    private $useTime = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="file_size", type="string", length=255, nullable=false, options={"comment"="文件大小"})
     */
    private $fileSize = '';

    /**
     * @var string
     *
     * @ORM\Column(name="task_conditions", type="string", length=5000, nullable=false, options={"comment"="导出任务条件"})
     */
    private $taskConditions = '';

    /**
     * @var string
     *
     * @ORM\Column(name="task_index", type="string", length=255, nullable=false, options={"comment"="导出条件hash值"})
     */
    private $taskIndex = '';

    /**
     * @var int
     *
     * @ORM\Column(name="is_part", type="smallint", nullable=false, options={"comment"="是否包含未完整部分（0不包含 1包含）"})
     */
    private $isPart = '0';

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getTokenId(): ?int
    {
        return $this->tokenId;
    }

    public function setTokenId(int $tokenId): self
    {
        $this->tokenId = $tokenId;

        return $this;
    }

    public function getTaskName(): ?string
    {
        return $this->taskName;
    }

    public function setTaskName(string $taskName): self
    {
        $this->taskName = $taskName;

        return $this;
    }

    public function getVccId(): ?int
    {
        return $this->vccId;
    }

    public function setVccId(int $vccId): self
    {
        $this->vccId = $vccId;

        return $this;
    }

    public function getProgress(): ?int
    {
        return $this->progress;
    }

    public function setProgress(int $progress): self
    {
        $this->progress = $progress;

        return $this;
    }

    public function getFileUrl(): ?string
    {
        return $this->fileUrl;
    }

    public function setFileUrl(string $fileUrl): self
    {
        $this->fileUrl = $fileUrl;

        return $this;
    }

    public function getDataCount(): ?int
    {
        return $this->dataCount;
    }

    public function setDataCount(int $dataCount): self
    {
        $this->dataCount = $dataCount;

        return $this;
    }

    public function getCreateUserId(): ?int
    {
        return $this->createUserId;
    }

    public function setCreateUserId(int $createUserId): self
    {
        $this->createUserId = $createUserId;

        return $this;
    }

    public function getCreateTime(): ?int
    {
        return $this->createTime;
    }

    public function setCreateTime(int $createTime): self
    {
        $this->createTime = $createTime;

        return $this;
    }

    public function getStatusTime(): ?int
    {
        return $this->statusTime;
    }

    public function setStatusTime(int $statusTime): self
    {
        $this->statusTime = $statusTime;

        return $this;
    }

    public function getUseTime(): ?int
    {
        return $this->useTime;
    }

    public function setUseTime(int $useTime): self
    {
        $this->useTime = $useTime;

        return $this;
    }

    public function getFileSize(): ?string
    {
        return $this->fileSize;
    }

    public function setFileSize(string $fileSize): self
    {
        $this->fileSize = $fileSize;

        return $this;
    }

    public function getTaskConditions(): ?string
    {
        return $this->taskConditions;
    }

    public function setTaskConditions(string $taskConditions): self
    {
        $this->taskConditions = $taskConditions;

        return $this;
    }

    public function getTaskIndex(): ?string
    {
        return $this->taskIndex;
    }

    public function setTaskIndex(string $taskIndex): self
    {
        $this->taskIndex = $taskIndex;

        return $this;
    }

    public function getIsPart(): ?int
    {
        return $this->isPart;
    }

    public function setIsPart(int $isPart): self
    {
        $this->isPart = $isPart;

        return $this;
    }


}
